<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" language="java" %>
<%@ page import="com.appspot.bibtable.UrlCollection" %>
<%@ page import="com.appspot.bibtable.model.*" %>
<%@ page import="com.appspot.bibtable.view.html.*" %>
<%@ page import="com.google.appengine.api.users.*" %>
<%
HtmlTemplate template = new HtmlTemplate();
template.setTitle("Tips");
template.setRequest(request);
template.startDocument(out);
template.startContent(out);
%>
<ul id="contents">
	<li><a href="#general">General search</a></li>
	<li><a href="#special">Special search</a></li>
</ul>
<h3 id="general">General search</h3>
<p>
	BibTable search is always AND search; that is, search result contains all words you input.
	The search is case-insensitive.
	Double-quoted words is regarded as a phrase.
	Phrase search is NOT supported for title search at this moment.
	Unless input word is <a href="#special">special</a>,
	the word just targets for the title of reference.
</p>
<h3 id="special">Special search</h3>
<p>
	If search keyword starts with some special token,
	BibTable looks for specific field of reference.
</p>
<table summary="special search">
	<thead>
		<tr>
			<th>Token</th><th>Explanation</th><th>Example</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td><code>title:</code></td>
			<td>Searches the title of reference. Just make your search words explicit.</td>
			<td><code>title:bibtable</code></td>
		</tr>
		<tr>
			<td><code>type:</code></td>
			<td>Searches the type of reference.</td>
			<td><code>type:book</code></td>
		</tr>
		<tr>
			<td><code>author:</code></td>
			<td>Searches the author of reference. Exact match.</td>
			<td><code>author:"Smith J"</code></td>
		</tr>
		<tr>
			<td><code>tag:</code></td>
			<td>Searches the tag of reference. Exact match.</td>
			<td><code>tag:genome</code></td>
		</tr>
		<tr>
			<td><code>bookmark:</code></td>
			<td>Result includes those you are bookmarking. This token ignores after colon (:), but putting 'true' is recommended. This token is invalid for non-registered user.</td>
			<td><code>bookmark:true</code></td>
		</tr>
		<tr>
			<td><code>published:</code>, <code>published&lt;</code>, <code>published&lt;=</code>, <code>published&gt;</code>, <code>published&gt;=</code></td>
			<td>Searches the published year of reference.</td>
			<td><code>published&gt;2000</code></td>
		</tr>
	</tbody>
</table>

<%
template.endContent(out);
template.endDocument(out);
%>
